package com.xiumu.common.core.exception.blog;

import com.xiumu.common.core.exception.base.IBaseException;

/**
 * 1300-1399
 *
 * @Author XiuMu
 * @Date 2023/1/30 14:47
 **/
public enum BlogException implements IBaseException {

    TAG_EXIST(1302, "该标签已存在"),
    EMPTY_TAG_NAME(1301, "标签名称不能为空"),
    NOT_EXIT(1300, "该博客不存在");

    private final Integer code;

    private final String message;

    BlogException(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
